package com.xz.stu.server.vo.stuClass;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class ClassBaseVO {

    @Schema(description = "班级名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "计算机2021-1班")
    @NotBlank(message = "班级名称不能为空")
    @Size(max = 30, message = "班级名称长度不能超过30个字符")
    private String className;

    @Schema(description = "所属院系编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @NotNull(message = "所属院系不能为空")
    private Long deptId;

    @Schema(description = "班主任姓名", example = "李四")
    @Size(max = 10, message = "班主任姓名长度不能超过10个字符")
    private String headTeacher;
}




